package com.china08.yxyapi.repository.mg.scoreport;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import com.china08.yxyapi.entity.mg.scoreport.Exam;
import com.china08.yxyapi.entity.mg.scoreport.report.ExamQuesAnalyse;

public interface ExamQuesAnalyseRepsository extends MongoRepository<ExamQuesAnalyse, String> {

    Page<ExamQuesAnalyse> findByExamOrderByOrderNumAsc(Exam exam, Pageable pageable);

    ExamQuesAnalyse findById(String examQuesAnalyseId);

    ExamQuesAnalyse findTopByExamOrderByRightRateAsc(Exam exam);

    List<ExamQuesAnalyse> findByExam(Exam exam);

}
